package com.zhiche.lisa.tms.dto;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 牵引车证照
 * </p>
 *
 * @author qichao
 * @since 2018-06-27
 */
@TableName("lisa_carrier_license")
public class CarrierLicense extends Model<CarrierLicense> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	@TableField("license_id")
	private String licenseId;
    /**
     * 生效日期
     */
	@TableField("gmt_reg")
	private Date gmtReg;
    /**
     * 截止日期
     */
	@TableField("gmt_overdue")
	private Date gmtOverdue;
    /**
     * 牵引车id
     */
	@TableField("carrier_id")
	private Long carrierId;
    /**
     * 证照类型ID
     */
	@TableField("license_type_id")
	private Long licenseTypeId;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;

	private String creator;
	/**
	 * 创建时间
	 */
	@TableField("gmt_create")
	private Date gmtCreate;
	/**
	 * 更新时间
	 */
	@TableField("gmt_modify")
	private Date gmtModify;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getLicenseId() {
		return licenseId;
	}

	public void setLicenseId(String licenseId) {
		this.licenseId = licenseId;
	}

	public Date getGmtReg() {
		return gmtReg;
	}

	public void setGmtReg(Date gmtReg) {
		this.gmtReg = gmtReg;
	}

	public Date getGmtOverdue() {
		return gmtOverdue;
	}

	public void setGmtOverdue(Date gmtOverdue) {
		this.gmtOverdue = gmtOverdue;
	}

	public Long getCarrierId() {
		return carrierId;
	}

	public void setCarrierId(Long carrierId) {
		this.carrierId = carrierId;
	}

	public Long getLicenseTypeId() {
		return licenseTypeId;
	}

	public void setLicenseTypeId(Long licenseTypeId) {
		this.licenseTypeId = licenseTypeId;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CarrierLicense{" +
				"id=" + id +
				", licenseId='" + licenseId + '\'' +
				", gmtReg=" + gmtReg +
				", gmtOverdue=" + gmtOverdue +
				", carrierId=" + carrierId +
				", licenseTypeId=" + licenseTypeId +
				", tenantId=" + tenantId +
				", creator='" + creator + '\'' +
				", gmtCreate=" + gmtCreate +
				", gmtModify=" + gmtModify +
				"} " + super.toString();
	}
}
